<template>
  <div>
    欢迎回来，工厂ID：{{fac_id}}
  </div>
</template>

<script>
export default {
  data() {
    return {
      fac_id:'',
    }
  },
  // 类似onload
  created() {
    this.getTempFacId();//取出当前工厂的ID
  },
  methods: {
    getTempFacId() {
      this.fac_id = window.sessionStorage.getItem('fac_id');
    },
  }
};
</script>

<style scoped>

</style>